package org.example.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.example.domain.query.UserQuery;
import org.example.domain.vo.ErpUserVO;

import java.util.List;

/**
* @author DELL
* @description 针对表【erp_user(用户表)】的数据库操作Mapper
* @createDate 2024-10-09 17:03:06
* @Entity org.example.domain.po.ErpUser
*/
public interface ErpUserMapper extends BaseMapper<ErpUser> {
    List<ErpUser>selectUser();
    
//    IPage<ErpUserVO> queryUserPage(IPage<ErpUserVO> page, @Param(Constants.WRAPPER) Wrapper<ErpUserVO> userVOWrapper);
    IPage<ErpUserVO> queryUserPage(Page<ErpUserVO> page, @Param("userQuery") UserQuery userQuery);
    
    List<ErpUserVO> queryUserByTenant();
}




